﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace PhoneApp1
{
    public partial class pvMenu : PhoneApplicationPage
    {
        public pvMenu()
        {
            InitializeComponent();
        }

        private void listaMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (listaMenu.SelectedIndex == 0)
            {
                NavigationService.Navigate(new Uri("/ConsultarEventos.xaml", UriKind.RelativeOrAbsolute));
            }

            if (listaMenu.SelectedIndex == 1)
            {
                NavigationService.Navigate(new Uri("/pvListaDisciplinas.xaml", UriKind.RelativeOrAbsolute));
            }

            else if (listaMenu.SelectedIndex == 2) {
                NavigationService.Navigate(new Uri("/pvLogin.xaml", UriKind.RelativeOrAbsolute));
            }
        }


    }
}